# 获取所有cookies
all_cookies = driver.get_cookies()
# 打印所有cookies
for cookie in all_cookies:
    print(cookie["name"], cookie["value"])
# 获取指定名称的cookie
name = "uid"
cookie_value = driver.get_cookie(name)
print(f"{name}: {cookie_value}")
# 添加cookie
cookie_dict = {"name": "AABBBB", "value": "532467ahsidhsfhis34"}
driver.add_cookie(cookie_dict)
driver.implicitly_wait(3)
